"""
封装获取测试数据方法
"""
import yaml


def get_data(file):
    """
    根据yaml文件返回数据
    """
    with open(file, encoding='utf-8') as f:
        return yaml.safe_load(f)
